package com.wing.user.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.user.model.entity.Client;
import com.wing.user.model.request.ClientForm;
import com.wing.user.model.response.ClientVO;

import java.util.List;
import java.util.Map;

/**
 * 客户端-Service
 *
 * @author
 */
public interface ClientService extends IService<Client> {

    /**
     * 添加
     *
     * @param clientForm
     * @return
     */
    int add(ClientForm clientForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<ClientVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<ClientVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    ClientVO get4appById(Long id);

    /**
     * 详情
     *
     * @param clientId
     *
     * @return
     */
    ClientVO getByClientId(String clientId);
}
